<template>
	<activity ref="activity"></activity>
</template>

<script>
	import Activity from './activity.vue';
	import {
		getCommonShareInfo
	} from '@/common/utils.js';
	export default {
		onShareAppMessage() {
			return getCommonShareInfo()
		},
		components: {
			Activity
		},
		onReachBottom() {
			this.$refs.activity.loadData();
		},
		onPullDownRefresh() {
			this.$refs.activity.reset();
			this.$refs.activity.loadData();
			setTimeout(function() {
				uni.stopPullDownRefresh();
			}, 1000);
		},
		// onShow() {
		// 	this.$nextTick(() => {
		// 		this.$refs.activity.tabChange(0);
		// 	})
		// },
		data() {
			return {};
		},
		methods: {
			updateActive(cont, type) {
				this.$refs.activity.updateChild(cont, type)
			}
		}
	};
</script>
